-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate textinput contrast #4991
base: main
Are you sure you want to change the base?
Deprecate textinput contrast #4991
Conversation
Move contrast to deprecated props
Update TextInput.tsx
Mark `contrast` as deprecated in TextInput.docs.json
🦋 Changeset detectedLatest commit: 0b71456 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Hi! This pull request has been marked as stale because it has been open with no activity for 60 days. You can comment on the pull request or remove the stale label to keep it open. If you do nothing, this pull request will be closed in 7 days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! Sorry in the delay in getting back with a review 🙏🏼
Mostly LGTM, just wanting to confirm proper deprecation with design (see comment below)
@@ -79,7 +79,7 @@ function TextInputWithTokensInnerComponent<TokenComponentType extends AnyReactCo | |||
trailingVisual: TrailingVisual, | |||
loading, | |||
loaderPosition = 'auto', | |||
contrast, | |||
contrast, // deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'd also want to add the @deprecated
decorator to the contrast
prop in the StyledTextInputBaseWrapperProps object.
Though I do see this is also used in Select
in addition to TextInput
,TextArea
and TextInputWithTokens
.
@mperrotti wondering if we're good to remove contrast for all of these or should we explore a different strategy? 🤔
Closes #4355
This is my first contribution on this repository. I marked the
contrast
prop of TextInput and TextInputWithTokens as deprecated. I know that the issue says it should be removed, but for now I just deprecated it.Changelog
New
Changed
contrast
of TextInput and TextInputWithTokens as deprecated.Removed
Rollout strategy
minor
when a prop is deprecated)Testing & Reviewing
Merge checklist